/**
 * 
 */
package s2h.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author WIN7
 *
 */
@Entity
@Table(name="USERS")
public class UserModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private String username;
	private String password;
	private String fullname;
	private int iddepartment;
	/**
	 * @return the fullname
	 */
	
	@Id
	@GeneratedValue
	@Column(name="ID")
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(name="USERNAME")
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	@Column(name="PASSWORD")
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Column(name="FULLNAME")
	public String getFullname() {
		return fullname;
	}
	/**
	 * @param fullname the fullname to set
	 */
	
	public void setFullname(String fullname) {
		this.fullname = fullname;
	}
	/**
	 * @return the iddepartment
	 */
	/*@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_DEPARTMENT")*/
	@Column(name="DEPARTMENT")
	public int getIddepartment() {
		return iddepartment;
	}
	/**
	 * @param iddepartment the iddepartment to set
	 */
	public void setIddepartment(int iddepartment) {
		this.iddepartment = iddepartment;
	}

}
